<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>zstd</Name>
        <Homepage>https://facebook.github.io/zstd/</Homepage>
        <Packager>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>Zstandard - Fast real-time compression algorithm</Summary>
        <Description>Zstandard is a fast compression algorithm, providing high compression ratios. It also offers a special mode for small data, called dictionary compression..</Description>
        <Archive sha1sum="c56c8e6d703d14029464b2a1a66164dc5cf80855" type="targz">https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>meson</Dependency>
            <Dependency>ninja</Dependency>
            <Dependency>lz4-devel</Dependency>
            <Dependency versionFrom="1.2.12">zlib-devel</Dependency>
            <Dependency>xz-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">enable-CET.patch</Patch>
            <Patch level="1">zstd-1.5.2-upstream_fixes-1.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>zstd</Name>
        <RuntimeDependencies>
            <Dependency>lz4</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>xz</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/libzstd*</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>zstd-devel</Name>
        <Summary>Development files for zstd</Summary>
        <RuntimeDependencies>
            <Dependency>lz4-devel</Dependency>
            <Dependency release="current">zstd</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="7">
            <Date>2023-01-28</Date>
            <Version>1.5.2</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2022-08-24</Date>
            <Version>1.5.2</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2022-06-07</Date>
            <Version>1.5.2</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2022-05-05</Date>
            <Version>1.5.2</Version>
            <Comment>Version bump</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2021-11-06</Date>
            <Version>1.5.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2021-06-02</Date>
            <Version>1.5.0</Version>
            <Comment>Version bump</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2020-12-09</Date>
            <Version>1.4.5</Version>
            <Comment>First release</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2020-02-14</Date>
            <Version>1.4.4</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
